import Vue from 'vue'
import VueRouter from 'vue-router'
import store from 'vuex'
Vue.use(VueRouter)

const routes = [
  {//首页
    path: '/',
    name: 'home',
    meta:{title:'Baxoss',index:1},
    component: () => import('../views/sb/findex.vue')
  },

  {//首页
    path: '/sb',
    name: 'sb',
    meta:{title:'文章列表',index:1},
    component: () => import('../views/sb/findex.vue')
  },
  {//章节
    path: '/index',
    name: 'index',
    meta:{title:'章节',index:1},
    component: () => import('../views/sb/index.vue')
  },

  {//详情
    path: '/do',
    name: 'do',
    meta:{title:'文章内容',index:3},
    component: () => import('../views/sb/dome.vue')
  },
  // {//市场
  //   path: '/sc',
  //   name: 'sc',
  //   meta:{title:'调试',index:2},
  //   component: () => import('../views/sc/index.vue')
  // },
  {//用户
    path: '/yh',
    name: 'yh',
    meta:{title:'用户',index:3},
    component: () => import('../views/yh/index.vue')
  },
 //  {
 //    path: '/',
 //    name: 'home',
	// redirect: '/home',
 //    component: () => import('../views/dome.vue'),
	// children:[
	// 	// {
	// 	//  // label:'',
	// 	//  path: '/tabbox1',
	// 	//  name: 'tabbox1',
	// 	//  icon:'el-icon-location',
	// 	//  component: () => import('../views/tab_box/tabbox1.vue'),
	// 	// },
	// 	// {
	// 	//  // label:'',
	// 	//  path: '/my',
	// 	//  name: 'my',
	// 	//  icon:'el-icon-location',
	// 	//  component: () => import('../views/tab_box/tab_my.vue'),
	// 	// },

	// ]
 //  },

]

const router = new VueRouter({
  routes
})

export default router
